﻿<UserControl x:Class="Ipmce.RemoteVoting.Frontend.VotingApplication.View.PassportAuthorizationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Label Grid.Row="0" Grid.Column="0">Номер паспорта:</Label>
		<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Path=VoterPassportNumber}"/>
        <Label Grid.Row="1" Grid.Column="0">SMS подтверждение:</Label>
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Path=Sms}"/>
        <Label Grid.Row="2" Grid.Column="0">2-ая строка MRZ:</Label>
        <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Path=Mrz,UpdateSourceTrigger=PropertyChanged}"/>
        <Button Grid.Row="3" Grid.Column="0" Command="{Binding Path=ScanCommand.Command}" Content="{Binding Path=ScanCommand.DisplayName}"/>
        <Label Grid.Row="3" Grid.Column="1" Content="{Binding Path=Status}"/>
        <Label Grid.Row="4" Grid.Column="0">Фотография :</Label>
        <Image Grid.Row="4" Grid.Column="1" Margin="5,7,5,3" Source="{Binding Path=FacialPicture, Mode=TwoWay}" Stretch="Fill"/>
    </Grid>
</UserControl>
